<div class="block-item-container">
  <div class="blockPreview" #blockPreview [class.error]="hasError"></div>
  <div class="error-message" *ngIf="hasError && showError">
    <i class="error-icon">⚠️</i>
    <span>{{ error }}</span>
  </div>
</div>